# -*- coding: UTF-8 -*-
'''
@Project ：pythonProject 
@File    ：breakDemo.py
@Author  ：siwei
@Date    ：2023/5/30 22:30 
'''
"""流程控制语句break"""
p = '123456'
for i in range(3):
    pwd = input("请输入密码:")
    if pwd == p:
        print("密码正确")
        break
    else:
        print("密码不正确")

a = 0
while a<3:
    pwd = input("请输入密码:")
    if pwd==p:
        print("密码正确")
        break
    else:
        print("密码不正确")
        a+=1
